<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>商品分类列表</title>
		<meta name="keywords" content="" />
		<meta name="description" content="" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<% include("/admin/resource/common_css.html"){} %>
	</head>
	<body>
		<% include("/admin/common/header.html"){} %>
		<div class="main-container" id="main-container">
			<script type="text/javascript">
				try{ace.settings.check('main-container' , 'fixed')}catch(e){}
			</script>
			<div class="main-container-inner">
			  <% include("/admin/common/menu.html",{currentstr:"商品"}){} %>
				<div class="main-content">
				   <% include("/admin/common/breadcrumb.html",{breadaddfirst:"商品管理",breadaddsecond:"商品信息管理",breadaddthird:"商品信息列表"}){} %>
					<div class="page-content" id="content">
					  <form action="list">
				           <table>
			                 <tr>
				                  <td width="100" nowrap="nowrap" align="right">商品名称：</td><td><input type="text" name="goods.goods_name" class="w200" style="margin-top: 10px;" value=""/></td>
				                  <td width="100" nowrap="nowrap" align="right">商品编码：</td><td><input type="text"  name="goods.goods_sn"  class="w200" style="margin-top: 10px;" value=""/></td>
				                  <td><a href="" class="btn btn-success ml15">搜索</a></td>
								  <td><a href="${ctx!}/admin/shop/goods/chooseCategory" class="btn btn-success addbtn">发布新产品</a></td>
							  </tr> 
						   </table>
					   </form>
				      <div id="chnllist" style="margin-top: 10px;">
						<table class="table table-hover">
							<thead>
							<tr>
								<th>商品</th>
								<th>库存</th>
								<th>销量</th>
								<th width="200">操作</th>
							</tr>
							</thead>
							<%for(goods in goodss.List){%>
								<tr>
									
									<td>
									  <img width="100" width="100" src="${goods.goods_image!}"><span>${goods.goods_name!}</span>
									</td>
									 <td>
									  <span class="lh800">${goods.stocks!}</span>
									</td>
								     <td>
								     <span class="lh800">${goods.sales!}</span>
									</td>
									<td>
									 <span class="lh800">
									  <a href="${ctx!}/admin/shop/goods/detail?id=${goods.id!}" class="btn btn-info">编辑</a>  
									  <a href="#" onclick='delrow("${ctx!}/admin/shop/goods/delete",this,"${attribute.id!}")'  class="btn btn-danger">删除</a>
									 </span>
									</td>
								</tr>
							<%}%>
						</table>
						</div>
						<div id="bottomdiv">
				       		<%
							include("/admin/common/_page.html",{
							    uri : '/jd_fruit/admin/shop/goods/list/',
							    page : goodss
							}){}
							%> 
					    </div>
				 </div><!-- /.page-content -->
				</div><!-- /.main-content -->
				<% include("/admin/common/acesetting.html"){}%>
			</div><!-- /.main-container-inner -->
		</div><!-- /.main-container -->
	<% include("/admin/common/footer.html"){} %>
	<% include("/admin/resource/common_js.html"){} %>
    <script type="text/javascript" src="${ctx!}/plugin/zTree/js/TreeGrid.js"></script>  
    <script type="text/javascript" src="${ctx!}/plugin/zTree/js/jquery.ztree.core-3.5.js"></script>   
     <script type="text/javascript" src="${ctx!}/js/admin/category.js"></script>   
	</body>
</html>
